//
//  OneViewController.h
//  ceshi
//
//  Created by 乐辽科技 on 2018/6/14.
//  Copyright © 2018年 乐辽科技. All rights reserved.
//

#import <UIKit/UIKit.h>


//代理
@protocol OneViewDelegate <NSObject>
-(void)textData:(NSString *)text;
@end
//block
typedef void (^OneTextBlock)(NSString *textBlock);

@interface OneViewController : UIViewController
@property (nonatomic, copy) NSString *name;

@property (weak,nonatomic)id<OneViewDelegate> delegate;//代理

@property (copy,nonatomic) OneTextBlock data;//blcok

@property (copy,nonatomic) NSString * dataText;//   单例  添加一个观察的属性

@property (copy,nonatomic) NSString * dataTextNotification;//   通知

@end
